package com.xinxin.websocket.dao;

import com.xinxin.websocket.dataobject.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/29 17:02
 */
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
    User findByName(String name);

    List<User> findByNameIn(Set<String> nameList);
}
